/*
 * Licensed to Elasticsearch B.V. under one or more contributor
 * license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright
 * ownership. Elasticsearch B.V. licenses this file to you under
 * the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

using Elastic.Elasticsearch.Xunit.XunitPlumbing;
using Nest;
using System.ComponentModel;

namespace Examples.Modules.Cluster
{
	public class DiskAllocatorPage : ExampleBase
	{
		[U(Skip = "Example not implemented")]
		[Description("modules/cluster/disk_allocator.asciidoc:57")]
		public void Line57()
		{
			// tag::aaaa9a186db96077879ddfcfbd625fdb[]
			var response0 = new SearchResponse<object>();
			// end::aaaa9a186db96077879ddfcfbd625fdb[]

			response0.MatchesExample(@"PUT /twitter/_settings
			{
			  ""index.blocks.read_only_allow_delete"": null
			}");
		}

		[U(Skip = "Example not implemented")]
		[Description("modules/cluster/disk_allocator.asciidoc:82")]
		public void Line82()
		{
			// tag::4fe5a9e99dc9400d67a5a2f6f6752c07[]
			var response0 = new SearchResponse<object>();
			// end::4fe5a9e99dc9400d67a5a2f6f6752c07[]

			response0.MatchesExample(@"PUT _cluster/settings
			{
			  ""transient"": {
			    ""cluster.routing.allocation.disk.watermark.low"": ""100gb"",
			    ""cluster.routing.allocation.disk.watermark.high"": ""50gb"",
			    ""cluster.routing.allocation.disk.watermark.flood_stage"": ""10gb"",
			    ""cluster.info.update.interval"": ""1m""
			  }
			}");
		}
	}
}
